package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.GbProductSkuMapper;
import com.atmilan.quartz.model.entity.gb.GbProductSku;
import com.atmilan.quartz.service.IGbProductSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GbProductSkuServiceImpl extends ServiceImpl<GbProductSkuMapper, GbProductSku> implements IGbProductSkuService {
    @Autowired
    GbProductSkuMapper gbProductSkuMapper;

    @Override
    public void deleteAll() {
        gbProductSkuMapper.deleteAll();
    }
    
    @Override
    public void copyAll() {
        gbProductSkuMapper.deleteProductSkuBack();
        gbProductSkuMapper.copyProductSkuBack();
    }

}
